package com.lu.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lu.ssm.dao.UserDao;
import com.lu.ssm.entity.User;
import com.lu.ssm.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao dao;

	@Override
	public List<User> getList(String username) {
		User user=new User();
		user.setUsername(username);
		return dao.getList(user);
	}

	@Override
	public int updateBatch(List<User> user) {
		return dao.updateBatch(user);
	}

}
